package com.engine4cloud.tdf.common.core.constant.enums;

import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import lombok.Getter;

import java.io.Serializable;

/**
 * 定位预警类型
 */
@Getter
public enum LocAlarmTypeEnum implements Serializable {
    EXIT_WARNING("2", "越界出区域预警"),
    ENTER_WARNING("3", "越界进区域预警"),
    /**
     * 离线
     */
    OFFLINE_WARNING("6", "离线预警");
    @Enumerated(EnumType.STRING)
    private String type;
    private String desc;

    LocAlarmTypeEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
